from fastapi import FastAPI
from tortoise.contrib.fastapi import register_tortoise
from settings import TORTOISE_ORM
from api.students import student_api

app = FastAPI()
register_tortoise(
    app,
    config=TORTOISE_ORM
)

app.include_router(student_api)


if __name__ == '__main__':
    import uvicorn
    uvicorn.run("main:app", host='0.0.0.0', port=8889, reload=True)
